package cn.sstech.IM.config;

import javax.servlet.http.HttpSession;

import cn.sstech.IM.constant.Constants;

public class ConnectionUtil {
	
	public static String findServiceMarkBySession(HttpSession session){
		String result = "";
		
		if(null != session){
			Object serviceMarkObj = session.getAttribute(Constants.SERVICE_IDENTITY_MARK_NAME);
			result = String.valueOf(
					null == serviceMarkObj ? "" : serviceMarkObj + "_"
					);
		}
		
		return result;
	}
}
